﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;
using System.Configuration;

namespace NMoq.Core.UnitTest
{
    public class MethodStrategyPairData : NamedConfigurationElement
    {
        private const string MethodInfoProperty = "methodInfo";
        private const string StrategyProperty = "strategy";

        [ConfigurationProperty(StrategyProperty ,IsRequired =true )]
        public StrategyData Strategy
        {
            get
            {
                return (StrategyData)this[StrategyProperty];
            }
            set
            {
                this[StrategyProperty] = value;
            }
        }

        [ConfigurationProperty (MethodInfoProperty ,IsRequired =true )]
        public MethodInfoData MethodInfo
        {
            get
            {
                return (MethodInfoData)this[MethodInfoProperty];
            }
            set
            {
                this[MethodInfoProperty] = value;
            }
        }
    }
}
